package edu.suda.xsap.dto.convert;

import edu.suda.xsap.dto.Statistics_chargeDto;
import edu.suda.xsap.entity.Statistics_charge;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

import java.util.List;

@Mapper(componentModel = "spring")
public interface Statistics_chargeConvert {

    @Mapping(source="money", target = "money")
    @Mapping(source="year", target = "year")
    @Mapping(source="month", target = "month")
    Statistics_chargeDto toDto(Statistics_charge statistics_charge);

    List<Statistics_chargeDto> toDtoList(List<Statistics_charge> statisticsCharge);
}
